import request from '@/utils/request'

// 查询年终奖发放列表
export function listNzjff(query) {
  return request({
    url: '/basebill/nzjff/list',
    method: 'get',
    params: query
  })
}

// 查询年终奖发放详细
export function getNzjff(fid) {
  return request({
    url: '/basebill/nzjff/' + fid,
    method: 'get'
  })
}

// 新增年终奖发放
export function addNzjff(data) {
  return request({
    url: '/basebill/nzjff',
    method: 'post',
    data: data
  })
}

// 修改年终奖发放
export function updateNzjff(data) {
  return request({
    url: '/basebill/nzjff',
    method: 'put',
    data: data
  })
}

// 删除年终奖发放
export function delNzjff(fid) {
  return request({
    url: '/basebill/nzjff/' + fid,
    method: 'delete'
  })
}

//导入年终奖发放
export function importNzjff(fid) {
  return request({
    url: '/basebill/nzjff/importNzjff/' + fid,
    method: 'get'
  })
}
